<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>echarts</title>
    <style>
      .container {
        width: 800px;
        height: 400px;
      }
    </style>
  </head>
  <body>
    <div class="container"></div>
    <!-- 引入文件 -->
    <script src="./echarts.js"></script>
    <script>
      const myEcharts = echarts.init(document.querySelector(".container"));
      const option = {
        title: {
          text: "柱形图",
        },
        xAxis: {
          data: ["美女", "帅哥", "大哥", "大姐"],
        },
        yAxis: {},
        series: {
          type: "bar",
          data: [100, 150, 90, 200],
        },
      };
      myEcharts.setOption(option);
    </script>
  </body>
</html>
